package com.cskaoyan.mapper;

import com.cskaoyan.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author stone
 * @date 2022/10/04 16:00
 */
public interface UserMapper {
    // useGeneratedKeys keyProperty
    int insert(User user);// keyProperty id#{}
    int insert2(@Param("user") User user);//keyProperty user.id#{}

    List<User> selectByName(String username);
}
